////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011-2012 www.iflytek.com. All Rights Reserved.
//  This software for customer relationship management system, developed by Noo team.
//  Software code and design for the team, copy rights reserved.
////////////////////////////////////////////////////////////////////////////////

package com.iflytek.ci.cums.domain;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * role information.
 * </p>
 * 
 * @author poplar.yfyang
 * @version 1.0 2012-11-16 2:24 PM
 * @since JDK 1.5
 */
public class Role implements Serializable {
	/** Serial version */
	private static final long serialVersionUID = 6656372472605940148L;
	/** role's id */
	private long id;
	/** role's name */
	private String name;
	/** role's description; */
	private String description;
	/** role's permissions. */
	private List<Permissions> permissionsList;

	/**
	 * get role's id.
	 * 
	 * @return id
	 */
	public long getId() {
		return id;
	}

	/**
	 * set role's id.
	 * 
	 * @param id
	 *            id
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * get role's name
	 * 
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * set role's name
	 * 
	 * @param name
	 *            name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * get role's description
	 * 
	 * @return role's description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * set role's description
	 * 
	 * @param description
	 *            description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * role's permissions.
	 * 
	 * @return role's permissions.
	 */
	public List<Permissions> getPermissionsList() {
		return permissionsList;
	}

	/**
	 * role's permissions.
	 * 
	 * @param permissionsList
	 *            role's permissions.
	 */
	public void setPermissionsList(List<Permissions> permissionsList) {
		this.permissionsList = permissionsList;
	}
}
